package com.supor.aiot.food.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.supor.aiot.food.R;


public class RecipeNoneResultAdapter extends RecyclerView.Adapter{
    private Context mContext;

    public RecipeNoneResultAdapter(Context mContext ) {
        this.mContext = mContext;
    }

    @NonNull
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view= LayoutInflater.from(mContext).inflate(R.layout.item_none_result,parent, false);
        return new RecipeNoneHolder(view);
    }

    @Override
    public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 1;
    }

    public class RecipeNoneHolder extends RecyclerView.ViewHolder{
        public RecipeNoneHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
